package com.alipay.app.groupmeal.standard.http.interceptor;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

public class HttpHeaderInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {
        //  配置请求头
        Request request;
        request = chain.request().newBuilder()
                .header("charset", "UTF-8")
                .header("Accept", "*/*")
                .build();
        return chain.proceed(request);
    }
}
